import { Component, OnInit,Input,Output,EventEmitter } from '@angular/core';
import {PageInfo} from "../PageInfo";

@Component({
  selector: 'app-pagination',
  templateUrl: './pagination.component.html',
  styleUrls: ['./pagination.component.css']
})
export class PaginationComponent implements OnInit {
  @Input() pageInfo:PageInfo<any>;
  @Output() updateNumberI:EventEmitter<number> = new EventEmitter();
  i:number = 1;
  constructor() {
  }

  ngOnInit() {
  }
  changePage(pageNum:number) {
    this.updateNumberI.emit(pageNum);
  }
}
